<?php



class DemandeEvaluationMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.DemandeEvaluationMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('opds');

		$tMap = $this->dbMap->addTable('demande_evaluation');
		$tMap->setPhpName('DemandeEvaluation');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('DEMANDE_EVALUATION_ID', 'DemandeEvaluationId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DATE', 'Date', 'int', CreoleTypes::TIMESTAMP, false, null);

		$tMap->addColumn('EVALUATEUR', 'Evaluateur', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addForeignKey('DEMANDE_ID', 'DemandeId', 'int', CreoleTypes::INTEGER, 'demande', 'DEMANDE_ID', false, null);

		$tMap->addColumn('IS_DONNEES_DISPO', 'IsDonneesDispo', 'boolean', CreoleTypes::BOOLEAN, true, null);

		$tMap->addColumn('IS_OK_OBJECTIFS_ORU', 'IsOkObjectifsOru', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('IS_OK_ANONYMAT', 'IsOkAnonymat', 'boolean', CreoleTypes::BOOLEAN, false, null);

		$tMap->addColumn('INTERET', 'Interet', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('COMMENTAIRE', 'Commentaire', 'string', CreoleTypes::LONGVARCHAR, false, null);

	} 
} 